package com.sg.dto.integration.app;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc VirtualOrgrFilterMemberDto
 * @使用场景
 */
@Data
public class VirtualOrgrFilterMemberDto
        extends BaseDto
        implements Serializable {

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 个人账号
     */
    @ApiModelProperty("个人账号")
    private String userId;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 绑定手机
     */
    @ApiModelProperty("绑定手机")
    private String phone;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        VirtualOrgrFilterMemberDto that = (VirtualOrgrFilterMemberDto) o;
        return (
                originalRoleMemberId == that.originalRoleMemberId &&
                        userId == that.userId &&
                        roleMemberCode == that.roleMemberCode &&
                        idCardName == that.idCardName &&
                        phone == that.phone
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                originalRoleMemberId,
                userId,
                roleMemberCode,
                idCardName,
                phone
        );
    }

}
